<?php
/**
 * setup-mysql.php
 * 
 * does the post-details setup
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  Install
 */
?>
<h2>Writing database configuration</h2>
<p>
    The madoqua-installer is now setting up the necessary tables.
</p>

<?php if ($this->success) : ?>
<p>
    The tables have been set up succesfully.
</p>

<?php else : ?>
<p class="error">
    The tables could not be set up. Check for any one of the following causes:
</p>
<ul>
    <li>
        The database user <strong><?php echo $this->config()->database->username; ?>
        </strong> does not have sufficient rights to modify the database. 
    </li>
    <li>
        The database you have selected already contains a madoqua setup.
    </li>
    <li>
        The database you have selected is not empty and contains tables that conflict
        with madoqua's requirements. You can change the prefix for the tables to prevent
        this from happening.
    </li>
</ul>    


<?php endif; ?>